import sys
from sklearn import svm
from sklearn.datasets import load_svmlight_file
X_train, y_train = load_svmlight_file(sys.argv[1])
#X_test, y_test = load_svmlight_file("/home/vishnu/Work/src/ft_ml/scikit/scripts/datasets/w4a.t")
X_test, y_test = load_svmlight_file(sys.argv[2])
clf = svm.SVC(kernel='linear', C=1.0)
clf.fit(X_train,y_train)
print clf.score(X_test, y_test)
 
